---
title: "Service"
slug: /getting-started/types/service
description: "Learn about the Service object in Dagger and how to use it in your workflows."
---

import ServiceType from "@daggerTypes/_service.mdx";

import UseService from "@cookbookService/_use-service.mdx";
import ExposeServiceToHost from "@cookbookService/_expose-service-to-host.mdx";
import ExposeHostServiceToFunction from "@cookbookService/_expose-host-service-to-function.mdx";
import UseServiceEndpoints from "@cookbookService/_use-service-endpoints.mdx";
import CreateServiceForTest from "@cookbookService/_create-service-for-test.mdx";

<ServiceType />

## Examples

<UseService />

<ExposeServiceToHost />

<ExposeHostServiceToFunction />

<UseServiceEndpoints />

<CreateServiceForTest />
